<div class="topbar-button">
	<div class="left">
		<a href="home">{#back_home#}</a>
	</div>
</div>

<div class="left">

	<div id="userdetail" class="userdetail">

	{if $userVO eq null}

		<div class="user-not-found">{#user_doesnt_exist#}</div>
		
	{else}
		
		<div class="profilepic"><img src="imgs/u/{$userVO->id}.jpg"/></div>
		
		<div class="info">
			<span class="screenname">{$userVO->screenname}</span> 
			<span class="username">@{$userVO->username}</span>
			{if $userVO->resume neq ""}
				<div class="resume">
					{$userVO->resume}
				</div>			
			{/if}			
			{if $userVO->website neq ""}
				<div class="website">
					<a href="{$userVO->website}" target="_blank">{$userVO->website}</a>
				</div>			
			{/if}
		</div>
		
		<div class="topics">
			<div class="title">{#user_topics_follows#}</div>
			{if $userVO->topics neq null && $userVO->topics|@count > 0}
				{foreach from=$userVO->topics item="topicVO"}
				{/foreach}
			{else}
				<div class="no-topics-follow">{#user_no_topics_follow#}</div>
			{/if}
		</div>
		
		<div class="messages">
			<div class="title">{#user_last_messages#}</div>
			{if $userVO->comments neq null && $userVO->comments|@count > 0}
				{foreach from=$userVO->comments item="commentVO"}
					<div class="msg">
						<span class="msg">{$commentVO->msg}</span>
						<div class="info">on <a href="topic?id={$commentVO->topic_id}">{$commentVO->topic_name}</a> at {$commentVO->creationdate}</div>
					</div>
				{/foreach}
			{else}
				<div class="no-messages">{#user_no_messages#}</div>
			{/if}
		</div>
	
	{/if}
	
	</div>
	
</div>


<div class="right">
	{* <img src="imgs/s/test_ad.png" /> *}
</div>